<template>
  <div>
    <myForm buttonTxt="注册" :userForm="{ tel: '', password: '' }" url="/user/dofinishregister" @submit="ab">
      <template slot="userIcon">
        <i class="userIcnon"></i>
      </template>
      <template slot="passIcon">
        <i class="userIcnon"></i>
      </template>
      <template slot="passIcon"></template>
      <div>
        <router-link to="/login">已有账号去登录</router-link>
      </div>
    </myForm>
  </div>
</template>
<script>
import myForm from '../../components/form/form.vue'

export default {
  methods: {
    ab(res) {
      console.log(res)
    }
  },
  components: {
    myForm
  }
}
</script>

<style scoped>
.userIcnon {
  width: 20px;
  height: 20px;
  background: pink;
  border-radius: 50%;
}
</style>
